<template>
  <div class="boss">
    <Top></Top>
    <Banner id="9"></Banner>
    <chamber></chamber>
    <div class="boa">
      <!-- 版心区域 -->
      <div class="area-center">
        <!-- 总区域 -->
        <div class="top">
          <!-- 头部区域 -->

          <Head title="驻会机构"> </Head>
          <!-- 用户单位文字区域 -->
          <div class="umit title-center">
            <div
              class="xiao m-t-07"
              v-for="(item, index) in list"
              :key="index"
              @click="metting(item, index)"
            >
              <div class="left">
                <div class="yuan"></div>
              </div>
              <div class="zhong">
                {{ item.organizationTypeName }}
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
  
  <script>
import Top from "@/components/Home/TopPage.vue";
import Banner from "@/components/Home/BannerView.vue";
import chamber from "@/components/Home/CommCe.vue";
import Head from "@/components/public/HeadPage.vue";
import { rganizationType } from "@/api/index";
export default {
  data() {
    return {
      list: [],
    };
  },
  components: {
    Top,
    Banner,
    chamber,
    Head,
  },
  methods: {
    metting(item, i) {
      switch (item.organizationTypeId) {
        //驻会须知
        case "339a2a4e-3416-4f49-b5bb-cb5d38f06183":
          this.$router.push({
            path: "/attendees",
            query: {
              id: item.organizationTypeId,
              i: i + 1,
            },
          });
          break;
        default:
          this.$router.push({
            path: "/mettingone",
            query: {
              id: item.organizationTypeId,
              i: i + 1,
              name: item.organizationTypeName,
            },
          });
          break;
      }
      // this.$router.push({path:"/mettingone",query:{i}})
      // console.log(id);
    },
  },
  mounted() {
    rganizationType().then((res) => {
      if (res.data.code == 200) {
        this.list = res.data.rows;
      }
    });
  },
};
</script>
  
  <style scoped>
/* 大盒子区域 */
.boss {
  width: 100%;
  height: 100%;
}
/* 整体区域 */
.boa {
  width: 100%;
  min-height: 1rem;
  display: flex;
  justify-content: center;
  background-color: white;
}
/* 版心区域 */
.center {
  width: 98%;
  height: 3rem;
  padding-bottom: 0.2rem;
}
/* 商机总区域 */
.top {
  width: 100%;
}
h3 {
  width: 100%;
  height: 100%;
  font-size: 0.22rem;
  line-height: 0.4rem;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #dad9df;
}
h3 img {
  width: 0.24rem;
  margin-right: 0.05rem;
}
/* 用人单位区域 */
.umit {
  width: 100%;
  min-height: 0.4rem;
}
.xiao {
  width: 100%;
  display: flex;
  align-items: center;
}
/* 左边区域 */
.left {
  width: 0.2rem;
  padding-left: 0.06rem;
}
.yuan {
  width: 0.18rem;
  height: 0.18rem;
  border-radius: 50%;
  background-color: black;
}
/* 中间区域 */
.zhong {
  width: 95%;
  height: 100%;
  line-height: 0.3rem;
  margin-left: 0.05rem;
}
/* 底部区域  */
.bottom {
  width: 100%;
  height: 100%;
  margin-top: 0.1rem;
}

.bottom h3 {
  width: 100%;
  height: 0.35rem;
  text-align: center;
}
/* 内容区域 */
.context {
  width: 100%;
  height: 1rem;
  font-weight: 700;
}
</style>